//
//  FeedBackEntity.m
//  QQplayground
//
//  Created by zhangxy on 2018/8/8.
//  Copyright © 2018年 zhang. All rights reserved.
//

#import "FeedBackEntity.h"

@implementation FeedBackEntity

- (instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    self = [super init];
    if (self) {
        self = [FeedBackEntity yy_modelWithDictionary:dictionary];
        
        _user_info = [[User alloc] initWithDictionary:dictionary[@"user_info"]];
        
        _list = [[NSMutableArray alloc] init];
        NSArray *imgs = dictionary[@"list"];
        for (NSDictionary *item in imgs) {
            [_list addObject:[[FeedBackEntity alloc] initWithDictionary:item]];
        }
    }
    return self;
}


+ (NSDictionary<NSString *,id> *)modelCustomPropertyMapper
{
    return @{
             @"fid" : @"id",
             @"message":@"message",
             @"count":@"count",
             @"page":@"page",
             @"page_size":@"page_size"
             };
}

@end
